/*
 * @Author: wangdan
 * @Date: 2023-05-09 15:57:56
 * @LastEditors: wangdan
 * @LastEditTime: 2023-05-10 14:17:33
 * @Description:
 */
import { add, getTable, del, edit } from "@/api/commodity"
//增
export const addList = async (data) => {
  const res = await add(data)
  if (res.code == 200) {
    return res.data
  }
}
//获取列表
export const getTableData = async (params) => {
  const res = await getTable(params)
  if (res.code == 200) {
    return res.data
  }
}
//删除
export const delData = async (params) => {
  const res = await del(params)
  if (res.status == 200) {
    return res.data
  }
}
//编辑
export const editData = async (data) => {
  const res = await edit(data)
  if (res.code == 200) {
    return res.data
  }
}
